package com.ftg.learn.mall.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.ftg.learn.mall.entity.PmsProductCategory;
import java.util.ArrayList;
import java.util.List;

/**
 * 包含子级分类的商品分类
 * @author Guo
 * @date 2022/4/24
 */
public class PmsProductCategoryWithChildrenItem extends PmsProductCategory {

    @JsonInclude(JsonInclude.Include.NON_EMPTY) //判断Json对象中是否包含空
    private List<PmsProductCategoryWithChildrenItem> children = new ArrayList<>();

    public List<PmsProductCategoryWithChildrenItem> getChildren() {
        return children;
    }

    public void setChildren(List<PmsProductCategoryWithChildrenItem> children) {
        this.children = children;
    }
}
